package com.jiwang.mail.util.mail;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 沈伟峰
 */
@Component
@Data
public class MailProperties {

    @Value("${mail.encoding}")
    private String encoding;

    @Value("${mail.send.port}")
    private int sendPort;

    @Value("${mail.send.protocol}")
    private String sendProtocol;

    @Value("${mail.receive.port}")
    private int receivePort;

    @Value("${mail.receive.protocol}")
    private String receiveProtocol;
}
